<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%--
	auth : Conner
	date : 2012-09-10
	desc : 我的消息记录列表
--%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<jsp:include page="/admin/common/css/style_sub.jsp"></jsp:include>
<script type="text/javascript" src="<%=basePath%>js/lib/jquery/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="<%=basePath%>js/public.js"></script>
<script type="text/javascript" src="<%=basePath%>js/lib/My97DatePicker/WdatePicker.js"></script>
<script language="javascript">
</script>
</head>
<body>
	<form action="<%=basePath%>basic/sys/myMsg_selectMyMsg.action" id="sf" method="post">
		<div class="searchTab">
			<table>
				<tr>
					<th>类型编号</th>
					<td>
						<input type="text" name="sysMyInfo.bCode" value="${sysMyInfo.bCode}" style="width:166px;"/>
					</td>
					<th>当前状态</th>
					<td>
						<label><input type="radio" name="sysMyInfo.state" value="1" 
							<s:if test='%{sysMyInfo.state == "1"}'>checked="checked"</s:if>/>&nbsp;未读</label>&nbsp;&nbsp;&nbsp;&nbsp;
						<label><input type="radio" name="sysMyInfo.state" value="2" 
							<s:if test='%{sysMyInfo.state == "2"}'>checked="checked"</s:if>/>&nbsp;已读</label>
					</td>
				</tr>
				<tr>
					<th>创建时间</th>
					<td>
						<a href="#" title="点击选择日期" style="display:inline;">
							<input name="sysMyInfo.from" type="text" id="from" 
								onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" 
								value="${sysMyInfo.from}" style="width:70px;"/>
						</a><div style="display:inline;width:26px;text-align:center;">到</div><a href="#" title="点击选择日期" 
								style="display:inline;">
							<input name="sysMyInfo.to" type="text" id="to" style="width:70px;" 
								onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" value="${sysMyInfo.to}"/>
						</a>
					</td>
					<th>&nbsp;</th>
					<td>
						<span class="btn"><input type="submit" id="searchBtn" value="查询"/></span>
						<%-- <span class="btn">
							<input type="button" value="添加我的消息记录" 
								onclick="javascript:window.location.href = '<%=basePath%>admin/basic/system/msg/myMsg_add.jsp'"/>
						</span> --%>
						<span class="btn"><input type="button" value="删除所选" 
							onclick="javascript:del('<%=basePath%>basic/sys/myMsg_delete.action');"/></span>
					</td>
				</tr>
			</table>
		</div>
		<!--查询条件表格-->
		<div class="listTab">
			<table>
				<thead>
					<tr>
						<td><a href="javascript:void(0);" onclick="javascript:selectAll();">全选</a></td>
						<td>类型编号</td>
						<td>业务ID</td>
						<td>所属用户姓名</td>
						<td>当前状态</td>
						<td>创建时间</td>
						<td>提示内容</td>
						<td>单据编号</td>
						<td>操作</td>
					</tr>
				</thead>
				<tbody>
					<s:iterator value="%{pm.list}" id="sysMyInfo">
					<tr>
						<td><input type="checkbox" name="chk" value="${id }" id="${id }" /></td>
						<td>${bCode }</td>
						<td>${bId }</td>
						<td>${rname }</td>
						<td>
							<s:if test='#sysMyInfo.state == "1"'>未读</s:if>
							<s:elseif test='#sysMyInfo.state == "2"'>已读</s:elseif>
						</td>
						<td><s:property value="#sysMyInfo.createDate.substring(0, 16)"/></td>
						<td align="left">${infoConten }</td>
						<td>${bianHao }</td>
						<td>
							<%--<a href="javascript:void(0);" class="modi" 
								onclick="edit('<%=basePath%>basic/sys/myMsg_queryById.action?sysMyInfo.id=${id }&type=edit');">编辑</a> --%>
							<a href="javascript:void(0);" class="return" onclick="deleteById(${id }, '<%=basePath%>basic/sys/myMsg_delete.action');">删除</a>
						</td>
					</tr>
					</s:iterator>
					<s:if test="%{pm.list.size() == 0}">
					<tr>
						<td colspan="9"><font>暂时没有内容信息</font></td>
					</tr>
					</s:if>
				</tbody>
			</table>
		</div>
		<s:if test="%{pm.list.size() > 0}">
		<jsp:include page="/admin/common/pagemodel.jsp"></jsp:include>
		</s:if>
	</form>
</body>
</html>
